<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html><!-- InstanceBegin template="/Templates/manager_template.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<base href="<%=basePath%>">
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>URL列表</title>
<!-- InstanceEndEditable -->
<link href="style/manager.css" rel="stylesheet" type="text/css"/>
<link href="../style/manager.css" rel="stylesheet" type="text/css"/>
<script src="javascript/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="javascript/common.js" type="text/javascript"></script>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<header>
	<div id="header">
    	<div id="logo">
    		<h1>药品查询系统</h1>
   		</div>
        <ul id="nav">
        	<li><a href="manager/logout.do">安全退出</a></li>
        	<li><a href="manager/password.jsp">修改密码</a></li>
        	<li><a href="#">系统设置</a></li>
        	<li><a href="#">${manager.username},欢迎登陆!</a></li>
        </ul>
    </div>
</header>
<div id="container">
  <nav>
    	<ul>
       	  <li id="slider"><a href="drug/1/10">药品列表</a></li>
          <li id="movie"><a href="url/1/10">URL接口</a></li>
        </ul>
    </nav>
    <!-- InstanceBeginEditable name="content" -->
  	<div id="content">
  	  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-hover">
  	    <tr>
  	      <th width="22%" height="30" scope="col">ID</th>
  	      <th width="61%" height="30" scope="col">URL</th>
  	      <th width="17%" height="30" scope="col">操作</th>
        </tr>
        <c:forEach items="${pageModel.list}" var="u">
  	    <tr>
  	      <td height="30">${u.id}</td>
  	      <td height="30">${u.url}</td>
  	      <td height="30">
            <span class="pointer window-open edit-product-window-trigger" target="edit-product-window" product-id="${product.id}" style="margin-right:5px;">编辑</span>
            <span  product-id="${product.id}" class="pointer delete-product-window-trigger">删除</span>
          </td>
        </tr>
        </c:forEach>
        <c:forEach items="${drugList}" var="drug">
  	    <tr>
  	      <td height="30">${drug.id}</td>
  	      <td height="30">${drug.name}</td>
  	      <td height="30">
            <span class="pointer window-open edit-product-window-trigger" target="edit-product-window" product-id="${product.id}" style="margin-right:5px;">编辑</span>
            <span  product-id="${product.id}" class="pointer delete-product-window-trigger">删除</span>
          </td>
        </tr>
        </c:forEach>
      </table>
  	  
   		
  	</div>
  	<!-- InstanceEndEditable -->
</div>
<footer>CMS发布系统</footer>
</body>
<!-- InstanceEnd --></html>